$(document).ready(function() {
    $("#login-btn").click(function() {
        var $login_form = $("#login-form");
        var email = $login_form.find("input[name=email]").val();
        var password = $login_form.find("input[name=password]").val();
        if (/^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/.test(email) == false) {
            alert("email err");
        } else if (/^[\@A-Za-z0-9\!\#\$\%\^\&\*\.\~]{6,22}$/.test(password) == false) {
            alert("password err");
        } else {

        }
    });
});